// const { leven } = require('./leven')
import leven from './leven.js'

function levenTest() {
  const result = 19
  let data1 = "ABCDEFOPCHKSDFPJHKJHJHDSDWEWE";
  let data2 = "ABCDGHSDLKJHADNHJSSHKHHKJHDSD";
  let count = 0
  let start = Date.now();
  for (let i = 0; i < 1000; i++) {
    count = leven(data1, data2);
  }
  let end = Date.now();
  if (count != result) {
    throw 'leven error'
  }
  // console.log(`levenDemo_leven_001：${end - start} ms`);
  print(`levenDemo_leven_001：${end - start} ms`);
}

levenTest();
